package com.senlan.water.dao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.senlan.water.dao.domain.Project;
import com.baomidou.mybatisplus.extension.service.IService;
import com.senlan.water.dto.project.ProjectAddDTO;
import com.senlan.water.dto.project.ProjectEditDTO;
import com.senlan.water.dto.project.ProjectSearchDTO;

/**
* @author 10499
* @description 针对表【project(项目)】的数据库操作Service
* @createDate 2024-12-11 16:41:01
*/
public interface ProjectService extends IService<Project> {

    /**
     * 新增项目
     * @param addDTO
     * @return
     */
    Boolean addNew(ProjectAddDTO addDTO);

    /**
     * 编辑项目
     * @param editDTO
     * @return
     */
    Boolean editById(ProjectEditDTO editDTO);

    /**
     * 删除
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    /**
     * 分页查询
     * @param searchDTO
     * @return
     */
    Page<Project> getPage(ProjectSearchDTO searchDTO);
}
